﻿<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeBehind="Default.aspx.vb" Inherits="eAssessment___Prototype._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <style type="text/css">
        .loginFunctionSpacing
    {
        width: 659px;
        height: 221px;
    }
    .loginFunction1
    {
        height: 344px;
    }
    .style2
    {
            height: 39px;
        }
        .style3
        {
            height: 38px;
        }
        .style4
        {
            height: 35px;
        }
        .style5
        {
            font-size: x-large;
        }
        .style6
        {
            color: #000000;
        }
        .style7
        {
            color: #FF0000;
        }
    </style>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <p>
                    <span class="style6">Welcome to the University of Hertfordshire </span>
                    <span class="style7"> <em>E-Assessment</em></span><span class="style6"> System.</p>
    <p>
                    Your Lecturer / Tutor will have set up a test for you to carry out. To access 
                    your account, simply enter your registered email address and password and click 
                    &#39;continue&#39;.
                </p>
    <p>
                    If you dont have an account and need to register, click <a href="registration.aspx">here</a> for the 
                    registration form. </span>
                </p>

                <div class = "loginFunction1">
                <div class = "loginFunctionSpacing">
                
                    &nbsp;&nbsp;
                
                    <asp:Login ID="Login1" runat="server" Height="204px" Width="345px" 
                        BackColor="#E3EAEB" BorderColor="#E6E2D8" BorderPadding="4" BorderStyle="Solid" 
                        BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#333333" 
                        style="font-size: large" TextLayout="TextOnTop" 
                        DestinationPageUrl="~/UserPortal.aspx">
                        <InstructionTextStyle Font-Italic="True" ForeColor="Black" />
                        <LayoutTemplate>
                            <table cellpadding="1" cellspacing="0" style="border-collapse:collapse;">
                                <tr>
                                    <td>
                                        <table cellpadding="0" style="height:204px;width:310px;">
                                            <tr>
                                                <td align="center" colspan="2" class="style5">
                                                    &nbsp; Student Log In</td>
                                            </tr>
                                            <tr>
                                                <td align="right" class="style2">
                                                    <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">E-mail:</asp:Label>
                                                </td>
                                                <td class="style2">
                                                    <asp:TextBox ID="UserName" runat="server" style="font-family: Calibri"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                                        ControlToValidate="UserName" ErrorMessage="User Name is required." 
                                                        ToolTip="User Name is required." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right" class="style3">
                                                    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                                                </td>
                                                <td class="style3">
                                                    <asp:TextBox ID="Password" runat="server" TextMode="Password" 
                                                        style="font-family: Calibri"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                                        ControlToValidate="Password" ErrorMessage="Password is required." 
                                                        ToolTip="Password is required." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="style4" colspan="2">
                                                    <asp:CheckBox ID="RememberMe" runat="server" Text="Remember me next time." />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center" colspan="2" style="color:Red;">
                                                    <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right" class="style3" colspan="2">
                                                    <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Confirm" 
                                                        ValidationGroup="Login1" 
                                                        style="font-family: Calibri; font-size: medium;" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </LayoutTemplate>
                        <LoginButtonStyle BackColor="White" BorderColor="#C5BBAF" BorderStyle="Solid" 
                            BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#1C5E55" />
                        <TextBoxStyle Font-Size="0.8em" />
                        <TitleTextStyle BackColor="#1C5E55" Font-Bold="True" Font-Size="0.9em" 
                            ForeColor="White" />
                    </asp:Login>
                
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:StudentsConnectionString %>" 
                        ProviderName="<%$ ConnectionStrings:StudentsConnectionString.ProviderName %>" 
                        SelectCommand="SELECT * FROM [Item]"></asp:SqlDataSource>
                
                </div>
                
                </div>
    </asp:Content>
